<?php

namespace Ue\ErpBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * PlatformStock
 *
 * @ORM\Table(name="ue_platform_stock", indexes={@ORM\Index(name="ue_platform_stock_product_id_idx", columns={"product_id"}), @ORM\Index(name="ue_platform_stock_tmall_id_idx", columns={"tmall_id"}), @ORM\Index(name="ue_platform_stock_jd_id_idx", columns={"jd_id"}), @ORM\Index(name="ue_platform_stock_yhd_id_idx", columns={"yhd_id"}), @ORM\Index(name="is_sync_idx", columns={"is_sync"})})
 * @ORM\Entity
 */
class PlatformStock
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_sync", type="boolean", nullable=true)
     */
    private $isSync = '1';

    /**
     * @var integer
     *
     * @ORM\Column(name="tmall_qty", type="integer", nullable=true)
     */
    private $tmallQty = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="tmall_no", type="string", length=200, nullable=true)
     */
    private $tmallNo;

    /**
     * @var integer
     *
     * @ORM\Column(name="jd_qty", type="integer", nullable=true)
     */
    private $jdQty = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="jd_no", type="string", length=200, nullable=true)
     */
    private $jdNo;

    /**
     * @var integer
     *
     * @ORM\Column(name="yhd_qty", type="integer", nullable=true)
     */
    private $yhdQty = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="yhd_no", type="string", length=200, nullable=true)
     */
    private $yhdNo;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", nullable=false)
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=false)
     */
    private $updatedAt;

    /**
     * @var \Platform
     *
     * @ORM\ManyToOne(targetEntity="Platform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="jd_id", referencedColumnName="id")
     * })
     */
    private $jd;

    /**
     * @var \Product
     *
     * @ORM\ManyToOne(targetEntity="Product")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="product_id", referencedColumnName="id")
     * })
     */
    private $product;

    /**
     * @var \Platform
     *
     * @ORM\ManyToOne(targetEntity="Platform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="tmall_id", referencedColumnName="id")
     * })
     */
    private $tmall;

    /**
     * @var \Platform
     *
     * @ORM\ManyToOne(targetEntity="Platform")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="yhd_id", referencedColumnName="id")
     * })
     */
    private $yhd;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set isSync
     *
     * @param boolean $isSync
     * @return PlatformStock
     */
    public function setIsSync($isSync)
    {
        $this->isSync = $isSync;

        return $this;
    }

    /**
     * Get isSync
     *
     * @return boolean 
     */
    public function getIsSync()
    {
        return $this->isSync;
    }

    /**
     * Set tmallQty
     *
     * @param integer $tmallQty
     * @return PlatformStock
     */
    public function setTmallQty($tmallQty)
    {
        $this->tmallQty = $tmallQty;

        return $this;
    }

    /**
     * Get tmallQty
     *
     * @return integer 
     */
    public function getTmallQty()
    {
        return $this->tmallQty;
    }

    /**
     * Set tmallNo
     *
     * @param string $tmallNo
     * @return PlatformStock
     */
    public function setTmallNo($tmallNo)
    {
        $this->tmallNo = $tmallNo;

        return $this;
    }

    /**
     * Get tmallNo
     *
     * @return string 
     */
    public function getTmallNo()
    {
        return $this->tmallNo;
    }

    /**
     * Set jdQty
     *
     * @param integer $jdQty
     * @return PlatformStock
     */
    public function setJdQty($jdQty)
    {
        $this->jdQty = $jdQty;

        return $this;
    }

    /**
     * Get jdQty
     *
     * @return integer 
     */
    public function getJdQty()
    {
        return $this->jdQty;
    }

    /**
     * Set jdNo
     *
     * @param string $jdNo
     * @return PlatformStock
     */
    public function setJdNo($jdNo)
    {
        $this->jdNo = $jdNo;

        return $this;
    }

    /**
     * Get jdNo
     *
     * @return string 
     */
    public function getJdNo()
    {
        return $this->jdNo;
    }

    /**
     * Set yhdQty
     *
     * @param integer $yhdQty
     * @return PlatformStock
     */
    public function setYhdQty($yhdQty)
    {
        $this->yhdQty = $yhdQty;

        return $this;
    }

    /**
     * Get yhdQty
     *
     * @return integer 
     */
    public function getYhdQty()
    {
        return $this->yhdQty;
    }

    /**
     * Set yhdNo
     *
     * @param string $yhdNo
     * @return PlatformStock
     */
    public function setYhdNo($yhdNo)
    {
        $this->yhdNo = $yhdNo;

        return $this;
    }

    /**
     * Get yhdNo
     *
     * @return string 
     */
    public function getYhdNo()
    {
        return $this->yhdNo;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     * @return PlatformStock
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime 
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     * @return PlatformStock
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * Get updatedAt
     *
     * @return \DateTime 
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }

    /**
     * Set jd
     *
     * @param \Ue\ErpBundle\Entity\Platform $jd
     * @return PlatformStock
     */
    public function setJd(\Ue\ErpBundle\Entity\Platform $jd = null)
    {
        $this->jd = $jd;

        return $this;
    }

    /**
     * Get jd
     *
     * @return \Ue\ErpBundle\Entity\Platform 
     */
    public function getJd()
    {
        return $this->jd;
    }

    /**
     * Set product
     *
     * @param \Ue\ErpBundle\Entity\Product $product
     * @return PlatformStock
     */
    public function setProduct(\Ue\ErpBundle\Entity\Product $product = null)
    {
        $this->product = $product;

        return $this;
    }

    /**
     * Get product
     *
     * @return \Ue\ErpBundle\Entity\Product 
     */
    public function getProduct()
    {
        return $this->product;
    }

    /**
     * Set tmall
     *
     * @param \Ue\ErpBundle\Entity\Platform $tmall
     * @return PlatformStock
     */
    public function setTmall(\Ue\ErpBundle\Entity\Platform $tmall = null)
    {
        $this->tmall = $tmall;

        return $this;
    }

    /**
     * Get tmall
     *
     * @return \Ue\ErpBundle\Entity\Platform 
     */
    public function getTmall()
    {
        return $this->tmall;
    }

    /**
     * Set yhd
     *
     * @param \Ue\ErpBundle\Entity\Platform $yhd
     * @return PlatformStock
     */
    public function setYhd(\Ue\ErpBundle\Entity\Platform $yhd = null)
    {
        $this->yhd = $yhd;

        return $this;
    }

    /**
     * Get yhd
     *
     * @return \Ue\ErpBundle\Entity\Platform 
     */
    public function getYhd()
    {
        return $this->yhd;
    }
}
